<?php
if (isset(Yii::app()->session['activeSuccess'])) {
    ?>
    <div id="success-sign-up" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
    	<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    	<h3 id="myModalLabel">Success!</h3>
        </div>
        <div class="modal-body">
    	<div class="alert alert-success">Your account have been actived successfully.</div>
        </div>
        <div class="modal-footer">
    	<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>		
        </div>
    </div>
    <?php
    unset(Yii::app()->session['activeSuccess']);
}
?>

<?php $this->pageTitle = SITE_NAME; ?>
<div class="container content">

    <div class="banner">
	<div class="left-ban"></div>
	<?php $this->renderPartial('_index/form-register', array('model' => $model, 'success' => $success)); ?>
	<div class="right-ban"></div>
    </div><!--banner-->


    <div class="box-man">
	<div class="new-mem">
	    <div class="title">New Member</div>
	    <ul>
		<?php
		if ($aUsers) {
		    foreach ($aUsers as $user) {
			?>
			<li>
			    <div class="img-mem">
				<img src="<?php echo $user->getAvatarUrl() ?>" />			
			    </div>
			    <div class="text-mem">
				<?php echo $user->username ?>
				<br />
				Age: <?php echo $user->age; ?>
			    </div>
			</li>		
			<?php
		    }
		}
		?>
	    </ul>
	</div><!--new-mem-->


	<div class="row-fluid">
	    <div class="wel">
		<h3>Why Choose  Zodada.com?</h3>
		<p>
		    <?php echo settings()->get('site', 'why_us'); ?> 
		</p>
	    </div><!--wel-->

	    <div class="testimal">
		<h3>Testimonials</h3>
		<div class="boxtest">
		    <?php echo settings()->get('site', 'testimonial'); ?>
		</div>
		<?php /*
		  <div class="nguoi-test">Jake Wood</div>
		 * 
		 */ ?>
	    </div><!--testimal-->

	</div><!--row-fluid-->


    </div><!--box-man-->


</div><!--content-->